lib: aarch64: fix non-code symbol errors flagged by armlink
authorVarun Wadekar <[email protected]>
Thu, 10 Jan 2019 23:36:44 +0000 (15:36 -0800)
committerVarun Wadekar <[email protected]>
Thu, 7 Feb 2019 16:47:09 +0000 (08:47 -0800)
This patch modifies the code to turn __1printf and __2printf into proper
functions to fix the following errors flagged by armlink.

Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.
Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.
Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.
Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.
Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.
Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf.

Change-Id: I89126bc2b9db44ce8b8fc9fb1e3fc4c8c60c47a4
Signed-off-by: Varun Wadekar <[email protected]>
lib/aarch64/armclang_printf.S

index 2b87bf7e0f10dccf9add0934f23b686d4fbba136..52a69769548687025e60be582d1aa7d0fd7ee367 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
        .globl __2printf
 
 func __0printf
-__1printf:
-__2printf:
-        b      printf
+       b       printf
 endfunc __0printf
+
+func __1printf
+       b       printf
+endfunc __1printf
+
+func __2printf
+       b       printf
+endfunc __2printf